home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / igps_102.zip / GSM.H < prev    next >
C/C++ Source or Header  |  1994-04-15  |  2KB  |  74 lines

  1. /*
  2.  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
  3.  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
  4.  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
  5.  */
  6.  
  7. /*$Header: /home/kbs/jutta/src/gsm/gsm-1.0/inc/RCS/gsm.h,v 1.2 1992/10/28 14:50:59 jutta Exp jutta $*/
  8.  
  9. #ifndef    GSM_H
  10. #define    GSM_H
  11.  
  12. #ifdef __cplusplus  
  13. #define    NeedFunctionPrototypes    1
  14. #endif
  15.  
  16. #if __STDC__
  17. #define    NeedFunctionPrototypes    1
  18. #endif
  19.  
  20. #ifdef _NO_PROTO
  21. #undef    NeedFunctionPrototypes
  22. #endif
  23.  
  24. #undef    GSM_P    /* gnu stdio.h actually defines this...     */
  25.  
  26. #if NeedFunctionPrototypes
  27. #define    GSM_P( protos )    protos
  28. #else
  29. #define  GSM_P( protos )    ( /* protos */ )
  30. #endif
  31.  
  32. #ifdef NeedFunctionPrototypes
  33. #include    <stdio.h>        /* for FILE *     */
  34. #endif
  35.  
  36. /*
  37.  *    Interface
  38.  */
  39.  
  40. typedef struct gsm_state *     gsm;
  41. typedef short               gsm_signal;        /* signed 16 bit */
  42. typedef unsigned char        gsm_byte;
  43. typedef gsm_byte         gsm_frame[33];        /* 33 * 8 bits     */
  44.  
  45. #define    GSM_MAGIC    0xD                  /* 13 kbit/s RPE-LTP */
  46.  
  47. #define    GSM_PATCHLEVEL    0
  48. #define    GSM_MINOR    0
  49. #define    GSM_MAJOR    1
  50.  
  51. #define    GSM_OPT_VERBOSE    1
  52. #define    GSM_OPT_FAST    2
  53. #ifdef __cplusplus  
  54. extern "C" {
  55. #endif
  56.  
  57. gsm  gsm_create     GSM_P((void));
  58. void gsm_destroy GSM_P((gsm));    
  59.  
  60. int  gsm_print   GSM_P((FILE *, gsm, gsm_byte  *));
  61. int  gsm_option  GSM_P((gsm, int, int *));
  62.  
  63. void gsm_encode  GSM_P((gsm, gsm_signal *, gsm_byte  *));
  64. int  gsm_decode  GSM_P((gsm, gsm_byte   *, gsm_signal *));
  65.  
  66. int  gsm_explode GSM_P((gsm, gsm_byte   *, gsm_signal *));
  67. void gsm_implode GSM_P((gsm, gsm_signal *, gsm_byte   *));
  68. #ifdef __cplusplus  
  69. }
  70. #endif
  71. #undef    GSM_P
  72.  
  73. #endif    /* GSM_H */
  74.